import { createApp } from 'vue'
//引入pinia
import { createPinia } from 'pinia'
import App from './App.vue'
//引入路由
import router from './router'
//引入element plus
import elementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入element icon图标
import * as elementIcon from '@element-plus/icons-vue'

const pinia = createPinia()
const app = createApp(App)
app.use(pinia).use(router).use(elementPlus).mount('#app')

for (const[key, component] of Object.entries(elementIcon)) {
	app.component(key, component)
}
